package com.hanson.mapper;

import com.hanson.entity.CartBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CartBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CartBean record);

    CartBean selectByPrimaryKey(Integer id);

    List<CartBean> selectAll();

    List<CartBean> selectByOpenId(@Param("openId") String openId);

    Integer countByOpenId(@Param("openId") String openId);

    int updateByPrimaryKey(CartBean record);

    int updateOpenId(@Param("oldId") String oldId, @Param("newId") String newId);
}